#coding=utf-8
'''
Created on Dec 14, 2015
@author: DQA
'''
import os
import os.path
import common_setting.config
import choose_mobile

if choose_mobile.want_to_test_mobile == 'huawei_honor7':
    path = common_setting.config.GetImagePath()[0]
    
else:
    path = common_setting.config.GetImagePath()[1]
    

def Create(parameter):
    try:
        #path = common_setting.config.GetImagePath()[0]
        os.mkdir(path+"\\"+parameter)
        ImagePath = os.path.join(path+"\\"+parameter+'\\')
        return ImagePath
    except:
        ImagePath = os.path.join(path+"\\"+parameter+'\\')
        return ImagePath
        #print '当前Log保存目录已经建立，不需要再建立'
        pass


    